/*
* @Author: qingsong-Liu
* @Date:   2019-08-14 17:24:17
* @Last Modified by:   qingsong-Liu
* @Last Modified time: 2019-08-17 22:04:30
*/
'use strict';

var _mm = require('util/mm.js');

var _product={
    // 获取商品列表
    getProductList:function(listParam,resolve,reject){
        _mm.request({
            url     : _mm.getServerUrl('/product/list.do'),
            data    : listParam,
            method  : 'POST',
            success : resolve,
            error   : reject
        });
    },
    // 获取商品详细信息
    getProductDetail:function(productId,resolve,reject){
        _mm.request({
            url     : _mm.getServerUrl('/product/detail.do'),
            data    : {
                productId : productId
            },
            method  : 'POST',
            success : resolve,
            error   : reject
        });
    }
}
module.exports = _product;